/**
 * @description 表格列对象
 */
const columns = [
  {
    title: "排序",
    key: "sort",
    align: "center",
    width: 100,
  },
  {
    title: "检测方法",
    key: "methodCode",
    width: 150,
    align: "center",
    ellipsis: true,
    tooltip: true,
    formatData: false,
    search: {
      show: false,
    },
    form: {
      show: true,
      order: 1,
      formItem: {
        rules: [
          {
            required: true,
            trigger: "change",
            message: "请输入检测方法",
          },
        ],
      },
    },
  },
  {
    title: "方法名称",
    key: "standardNameZhCn",
    width: 220,
    align: "center",
    ellipsis: true,
    tooltip: true,
    formatData: false,
    search: {
      show: false,
    },
    form: {
      show: true,
      order: 2,
      formItem: {
        rules: [
          {
            required: true,
            trigger: "change",
            message: "请输入项目名称",
          },
        ],
      },
      grid: { span: "24" },
    },
  },
  {
    title: "限制范围或说明",
    key: "limitDescription",
    width: 200,
    align: "center",
    search: {
      show: false,
    },
    form: {
      show: true,
      order: 33,
      component: { type: "textarea", rows: 2 },
      grid: { span: "24" },
    },
  },
  {
    title: "检测周期",
    key: "detectionPeriod",
    width: 150,
    align: "center",
    search: {
      show: false,
    },
    form: {
      show: true,
      order: 13,
    },
  },
  {
    title: "单位",
    key: "specificationUnit",
    width: 150,
    align: "center",
    slot: "specificationUnit",
    dict: {
      code: "result_unit",
    },
    search: {
      show: false,
    },
    form: {
      show: true,
      title: "结果单位",
      order: 12,
      component: { name: "Select" },
    },
  },
  {
    title: "检出限",
    key: "detectionLimit",
    width: 100,
    align: "center",
    search: {
      show: false,
    },
    form: {
      show: true,
      order: 5,
    },
  },
  {
    title: "上限",
    key: "upperLimit",
    width: 100,
    align: "center",
    search: {
      show: false,
    },
    form: {
      show: true,
      order: 10,
    },
  },
  {
    title: "下限",
    key: "lowerLimit",
    width: 100,
    align: "center",
    search: {
      show: false,
    },
    form: {
      show: true,
      order: 9,
    },
  },
  {
    title: "样品适用范围",
    key: "sampleApplicationRange",
    width: 200,
    align: "center",
    search: {
      show: false,
    },
    form: {
      show: true,
      order: 19,
    },
  },
  {
    title: "检测费",
    key: "inspectionFee",
    width: 100,
    align: "center",
    search: {
      show: false,
    },
    form: {
      show: true,
      order: 14,
      component: {
        type: "number",
      },
    },
  },
  {
    title: "专业类别",
    key: "professionalCategory",
    width: 100,
    align: "center",
    search: {
      show: false,
    },
    form: {
      show: true,
      order: 22,
    },
  },
  {
    title: "项目名称编码",
    key: "projectNameCode",
    width: 0,
    align: "center",
    show: false,
    search: {
      show: false,
    },
    form: {
      show: true,
      order: 3,
    },
  },
  {
    title: "CFDA检出限",
    key: "cfdaDetectionLimit",
    width: 0,
    align: "center",
    show: false,
    search: {
      show: false,
    },
    form: {
      show: true,
      order: 4,
    },
  },
  {
    title: "定量限",
    key: "dlxQuantificationLimit",
    width: 0,
    align: "center",
    show: false,
    search: {
      show: false,
    },
    form: {
      show: true,
      order: 6,
    },
  },
  {
    title: "限量",
    key: "quantificationLimit",
    width: 0,
    align: "center",
    show: false,
    search: {
      show: false,
    },
    form: {
      show: true,
      order: 7,
    },
  },
  {
    title: "缺省结果",
    key: "defaultResult",
    width: 0,
    align: "center",
    show: false,
    search: {
      show: false,
    },
    form: {
      show: true,
      order: 8,
    },
  },
  {
    title: "缺省评价",
    key: "defaultEvaluationTypeCode",
    width: 0,
    align: "center",
    show: false,
    dict: {
      code: "default_evaluation",
    },
    search: {
      show: false,
    },
    form: {
      show: true,
      order: 11,
      component: {
        name: "Select",
        filterable: false,
      },
    },
  },
  {
    title: "法检费",
    key: "legalInspectionFee",
    width: 0,
    align: "center",
    show: false,
    search: {
      show: false,
    },
    form: {
      show: true,
      order: 15,
      component: {
        type: "number",
      },
    },
  },
  {
    title: "检测分值",
    key: "detectionScore",
    width: 0,
    align: "center",
    show: false,
    search: {
      show: false,
    },
    form: {
      show: true,
      order: 16,
    },
  },
  {
    title: "前处理分值",
    key: "preTreatmentScore",
    width: 0,
    align: "center",
    show: false,
    search: {
      show: false,
    },
    form: {
      show: true,
      order: 17,
    },
  },
  {
    title: "其他认可",
    key: "otherRecognition",
    width: 0,
    align: "center",
    show: false,
    search: {
      show: false,
    },
    form: {
      show: true,
      order: 18,
    },
  },
  {
    title: "技术负责人",
    key: "techLead",
    width: 0,
    align: "center",
    show: false,
    search: {
      show: false,
    },
    form: {
      show: true,
      order: 20,
    },
  },
  {
    title: "检测组名称",
    key: "detectionGroupName",
    width: 0,
    align: "center",
    show: false,
    search: {
      show: false,
    },
    form: {
      show: true,
      order: 21,
    },
  },

  {
    title: "有效性",
    key: "effectiveness",
    width: 0,
    align: "center",
    show: false,
    search: {
      show: false,
    },
    form: {
      show: true,
      order: 23,
      component: {
        value: "有效",
      },
      formItem: {
        rules: [
          {
            required: true,
            trigger: "change",
            message: "有效性是必填项",
          },
        ],
      },
    },
  },
  {
    title: "CMA认可",
    key: "cmaStatus",
    width: 0,
    align: "center",
    show: false,
    search: {
      show: false,
    },
    dict: {
      data: [
        {
          value: "1",
          label: "",
        },
      ],
    },
    form: {
      show: true,
      order: 24,
      component: {
        name: "Checkbox",
        value: [],
      },
      grid: { span: "6" },
    },
  },
  {
    title: "CALT认可",
    key: "caltStatus",
    width: 0,
    align: "center",
    show: false,
    search: {
      show: false,
    },
    dict: {
      data: [
        {
          value: "1",
          label: "",
        },
      ],
    },
    form: {
      show: true,
      order: 25,
      component: {
        name: "Checkbox",
        value: [],
      },
      grid: { span: "6" },
    },
  },
  {
    title: "禁止打折",
    key: "noDiscountStatus",
    width: 0,
    align: "center",
    show: false,
    search: {
      show: false,
    },
    dict: {
      data: [
        {
          value: "1",
          label: "",
        },
      ],
    },
    form: {
      show: true,
      order: 26,
      component: {
        name: "Checkbox",
        value: [],
      },
      grid: { span: "6" },
    },
  },
  {
    title: "不录结果",
    key: "unrecordedResultStatus",
    width: 0,
    align: "center",
    show: false,
    search: {
      show: false,
    },
    dict: {
      data: [
        {
          value: "1",
          label: "",
        },
      ],
    },
    form: {
      show: true,
      order: 27,
      component: {
        name: "Checkbox",
        value: [],
      },
      grid: { span: "6" },
    },
  },
  {
    title: "允许分包",
    key: "subcontractAllowedStatus",
    width: 0,
    align: "center",
    show: false,
    search: {
      show: false,
    },
    dict: {
      data: [
        {
          value: "1",
          label: "",
        },
      ],
    },
    form: {
      show: true,
      order: 28,
      component: {
        name: "Checkbox",
        value: [],
      },
      grid: { span: "6" },
    },
  },
  {
    title: "饱和量(%)",
    key: "saturationCapacity",
    width: 0,
    align: "center",
    show: false,
    search: {
      show: false,
    },
    form: {
      show: true,
      order: 29,
      component: {
        name: "InputNumber",
        max: 100,
        min: 0,
      },
    },
  },
  {
    title: "判定类型",
    key: "decisionTypeCode",
    width: 0,
    align: "center",
    show: false,
    search: {
      show: false,
    },
    dict: {
      code: "decision_type",
    },
    form: {
      show: true,
      order: 30,
      component: {
        name: "Select",
        filterable: false,
      },
    },
  },
  {
    title: "判定表达式",
    key: "decisionExpression",
    width: 0,
    align: "center",
    show: false,
    search: {
      show: false,
    },
    form: {
      show: true,
      order: 31,
    },
  },
  {
    title: "可替换项目编号",
    key: "replaceProjectCode",
    width: 0,
    align: "center",
    show: false,
    search: {
      show: false,
    },
    form: {
      show: true,
      order: 32,
    },
  },
  {
    title: "操作",
    key: "handle",
    width: 240,
    align: "center",
    slot: "operOptions",
    fixed: "right",
    search: {
      show: false,
    },
    form: {
      show: false,
    },
  },
];
export default columns;
